#include <stdio.h>
#include <stdlib.h>
#include "bonc_tool.h"

typedef struct A
{
    int a;
    char b;
    float c;
} A;
int main()
{
    A a;
    float *pc = &(a.c);

    bonc_printf_In("OFFSET= %d", STRUCT_MEM_OFFSET(A, c))
        bonc_printf_In("a.PTR= %p", &(a.a))
            bonc_printf_In("S.PTR= %p", STRUCT_PTR_MEM(pc, A, c))
}